package org.lds.scheduled.job.common.util;

import java.net.InetAddress;

public class IPUtil {
    public static String getLocalIp() {
        try {
            InetAddress addr = InetAddress.getLocalHost();
            return addr.getHostAddress();
        } catch (Exception e) {
            return "127.0.0.1";
        }
    }
}
